//
//  ByCellHomeIndexTextAD.m
//  mijifen_ios
//
//  Created by 朱凯 on 2017/11/7.
//  Copyright © 2017年 itboye. All rights reserved.
//

#import "ByCellHomeIndexTextAD.h"

@implementation ByCellHomeIndexTextAD
{
    UILabel *_contentLabel;
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        self.backgroundColor = BY_THEME_COLOR;
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self setupUI];
    }
    return self;
}

- (void)setupUI {
    
    _contentLabel = [[UILabel alloc] init];
    _contentLabel.adjustsFontSizeToFitWidth = true;
    _contentLabel.numberOfLines = 1;
    _contentLabel.text = @"天空飘来一行字：蜜积分欢迎您~";
    _contentLabel.font = FONT(14);
    _contentLabel.textAlignment = NSTextAlignmentCenter;
    _contentLabel.textColor = BY_GOLD_COLOR;
    [self.contentView addSubview:_contentLabel];
    
    [_contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.contentView);
    }];
}
@end
